'''
Created on May 31, 2012

@author: mupet
'''
import wx

class StatsTab(wx.Panel):
    
    name = "Stats"
    
    def createUI(self, sizer):
        listBox = wx.ListBox(self)
        self.listener.setStatsList(listBox)
        sizer.Add(listBox, flag=wx.EXPAND)

    def __init__(self, parent, generalEventListener):
        wx.Panel.__init__(self, parent)
        self.setListener(generalEventListener)
        sizer = wx.BoxSizer(wx.HORIZONTAL)
        self.SetSizer(sizer)
        self.createUI(sizer)
        
    def setListener(self, generalEventListener):
        self.listener = generalEventListener.getStatsTabListener()
